package com.tengfei.blogsystem.service;

import com.tengfei.blogsystem.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @version v1.0
 * @author} feige
 * @date 2021-10-21-20:35
 * @description
 */
public interface IImageService {
    ResponseResult uploadImage(HttpServletRequest request, HttpServletResponse response, MultipartFile file);

    void getImage(HttpServletResponse response, String imageId);

    ResponseResult listImage(HttpServletRequest request, HttpServletResponse response,int page, int size);

    ResponseResult deleteImage(String imageId);
}
